import stun
import sys
import tools


if __name__ == '__main__':
    # if sys.argv.__len__() == 1:
    #     # 房间名
    #     port = 54312
    #     print(f'未指定 port, 将默认设置为{port}!')
    # else:
    #     port = int(sys.argv[1])
    
    
    sys.argv.append("-i")
    sys.argv.append("332211")
    
    #sys.argv.append("-i=4321321")
    
    
    import argparse
    parser = argparse.ArgumentParser()
    parser.add_argument(
        '-d', '--debug', action='store_true',
        help='Enable debug logging'
    )
    
    parser.add_argument(
        '-i', '--source-ip',
        default="123123",
        help='network interface for client'
    )
    
    args, unknow = parser.parse_known_args()
    
    #args = parser.parse_args()
    
    print('123321')
    
    print('args ~~~~~~~~~~~~~ ', args)

    
    
    print(f'args source_ip --- {args.source_ip}')

    pass




